import { httpInstance } from '@/utils/request'

interface FetchProjectListAPIParams {
  limit: string
  page: string
  status?: string
  keyword?: string
}

interface FetchProjectVerifyAPIResData {
  code: number
  data: {
    current_page: number
    data: Project[]
    last_page: number
    per_page: string
    total: number
  }
  msg: string
  time: string
}

export function fetchProjectVerifyListAPI(
  params: FetchProjectListAPIParams,
  token: string,
) {
  return httpInstance.get<
    FetchProjectVerifyAPIResData,
    FetchProjectListAPIParams
  >(
    'api/Project_extend/projectVerifyList',
    { params, headers: { token } },
  )
}
